package com.cema.manage.project.android.service;

import com.alipay.api.AlipayApiException;
import com.cema.manage.project.android.model.PageVo;
import com.cema.manage.project.android.model.WithdrawalRecordVo;
import com.cema.manage.project.manage.users.domain.Users;
import com.cema.manage.project.manage.withdrawalConfig.domain.WithdrawalConfig;
import com.cema.manage.project.manage.withdrawalRecord.domain.WithdrawalRecord;

import java.util.List;

/**
 * @author Administrator
 */
public interface BizWithdrawalService {
    /**
     * 获取金币配置
     *
     * @param type
     * @return
     */
    List<WithdrawalConfig> queryWithdrawalConfig(String type,String uvChannel);

    /**
     * 提现
     *
     * @param users
     * @param recordVo
     * @return
     * @throws AlipayApiException
     */
    boolean userWithdrawal(Users users, WithdrawalRecordVo recordVo) throws AlipayApiException;

    /**
     *
     * @param userId
     * @param pageVo
     * @return
     */
    List<WithdrawalRecord> getUserWithdrawla(Integer userId, PageVo pageVo);
}
